﻿using System;
using SharpSqlAnalyzer.stmt;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x0200035F RID: 863
	public class TTopClause : TParseTreeNode
	{
		// Token: 0x060023C8 RID: 9160 RVA: 0x00337D14 File Offset: 0x00335F14
		public override void init(object arg1)
		{
			if (arg1 is TExpression)
			{
				this.expr = (TExpression)arg1;
			}
		}

		// Token: 0x060023C9 RID: 9161 RVA: 0x00337D2A File Offset: 0x00335F2A
		public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
		{
			if (this.expr != null)
			{
				this.expr.doParse(psql, plocation);
			}
		}

		// Token: 0x17000798 RID: 1944
		// (get) Token: 0x060023CA RID: 9162 RVA: 0x00337D41 File Offset: 0x00335F41
		// (set) Token: 0x060023CB RID: 9163 RVA: 0x00337D49 File Offset: 0x00335F49
		public virtual TSelectSqlStatement Subquery
		{
			get
			{
				return this.subquery;
			}
			set
			{
				this.subquery = value;
			}
		}

		// Token: 0x17000799 RID: 1945
		// (get) Token: 0x060023CC RID: 9164 RVA: 0x00337D52 File Offset: 0x00335F52
		// (set) Token: 0x060023CD RID: 9165 RVA: 0x00337D5A File Offset: 0x00335F5A
		public virtual TExpression Expr
		{
			get
			{
				return this.expr;
			}
			set
			{
				this.expr = value;
			}
		}

		// Token: 0x1700079A RID: 1946
		// (get) Token: 0x060023CF RID: 9167 RVA: 0x00337D6C File Offset: 0x00335F6C
		// (set) Token: 0x060023CE RID: 9166 RVA: 0x00337D63 File Offset: 0x00335F63
		public virtual bool Percent
		{
			get
			{
				return this.percent;
			}
			set
			{
				this.percent = value;
			}
		}

		// Token: 0x1700079B RID: 1947
		// (get) Token: 0x060023D1 RID: 9169 RVA: 0x00337D7D File Offset: 0x00335F7D
		// (set) Token: 0x060023D0 RID: 9168 RVA: 0x00337D74 File Offset: 0x00335F74
		public virtual bool Withties
		{
			get
			{
				return this.withties;
			}
			set
			{
				this.withties = value;
			}
		}

		// Token: 0x060023D2 RID: 9170 RVA: 0x00337D85 File Offset: 0x00335F85
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060023D3 RID: 9171 RVA: 0x00337D95 File Offset: 0x00335F95
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			this.expr.acceptChildren(v);
			v.postVisit(this);
		}

		// Token: 0x04001BE2 RID: 7138
		private TExpression expr;

		// Token: 0x04001BE3 RID: 7139
		private TSelectSqlNode selectNode;

		// Token: 0x04001BE4 RID: 7140
		private TSelectSqlStatement subquery;

		// Token: 0x04001BE5 RID: 7141
		private bool percent;

		// Token: 0x04001BE6 RID: 7142
		private bool withties;
	}
}
